/**
 * 
 */
package com.jml.springsecurity.validator;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import javax.validation.Payload;

//自定义注解
@Target({ElementType.METHOD, ElementType.FIELD})//注解作用范围
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = MyConstraintValidator.class)
//表是这个是用于校验的，需要用MyConstraintValidator类校验
public @interface MyConstraint {
	String message();
	Class<?>[] groups() default { };
	Class<? extends Payload>[] payload() default { };
}
